package com.sihan.framework.etm.dto;

import com.framework.util.lang.Regex;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

@Data
public class RegisterDTO implements Serializable {

  private static final long serialVersionUID = 1210259702623186086L;

  @ApiModelProperty(value = "用户昵称")
  @NotNull
  private String name;

  @ApiModelProperty(value = "用户名")
  @NotEmpty
  private String username;

  @ApiModelProperty(value = "用户密码")
  @Pattern(regexp = Regex.PASSWORD, message = "{user.password}")
  @NotEmpty
  private String password;
  
  @ApiModelProperty(value = "确认密码")
  @Pattern(regexp = Regex.PASSWORD, message = "{user.password}")
  @NotEmpty
  private String rePassword;

  @ApiModelProperty(value = "性别: true 男  false 女")
  private Boolean sex;

  @ApiModelProperty(value = "电话号码")
  @Pattern(regexp = Regex.MOBILE, message = "{user.phone}")
  private String phone;

  @ApiModelProperty(value = "邮箱")
  @Pattern(regexp = Regex.EMAIL, message = "{user.email}")
  private String email;
  
  @ApiModelProperty(value = "角色ID")
  private Long roleId;
  
  @ApiModelProperty(value = "公司ID")
  private Long orgId;
  
  @ApiModelProperty(value = "公司名称")
  private String orgName;
}
